From: | Ben Hutchings |
Date: | 26 Aug 99 at 23:08:38 |
Subject: | Re: ExecBase & 'RESET:starting PC' exception |
From: Ben Hutchings <womble@zzumbouk.demon.co.uk>
On Thu, Aug 26, 1999 at 03:28:18PM +0000, andrewmarkwell@ukonline.co.uk wrote:
<snip>
> You can use exceptions like this:
>
> void main(void)
*sigh*
> {
> try
> {
> blahblah=somecode();
> if(!blahblah)
> throw "something went wrong";
> }
> catch(char *error)
> {
> cout << error;
> }
> }
You should use const char * here, not char *.